/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package motiveai.tests;

import motiveai.components.SensorEntity;
import motiveai.factors.Environment;

/**
 *
 * @author oxplay
 */
public class Test3Sensor extends SensorEntity<Test3Agent> {

    long lastAddedEnemy = System.currentTimeMillis();

    @Override
    protected void examEnvironment(Test3Agent agent, Environment environment) {
        if (agent.pushedButton != null) {
            environment.setBooleanFactor("pushed"+agent.pushedButton, true);
            agent.pushedButton = null;
        }
    }
}
